package HomeWork.bufferedReader;

import java.io.*;

/*
缓冲字符流的读取，注意用readLine（）一行一行的读取并输出。
FIS--ISR--BR
 */
public class BRDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis=new FileInputStream("chat.txt");
        InputStreamReader isr=new InputStreamReader(fis);
        BufferedReader br=new BufferedReader(isr);
        String s;
        while((s=br.readLine())!=null){
            System.out.println(s);
        }
        br.close();
    }
}
